function server(url) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: `http://ge.ec.singularitychina.com${url}`,
      method: 'GET',
      data: {},
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: (res) => {
        resolve(res.data.data);
      },
      fail: (e) => {
        reject(e)
      }
    })
  })
}

export default server
